import java.awt.Color;
import java.awt.GridLayout;

import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.Border;


public class CaractTour extends JPanel {

	/**
	 * 
	 */
	private JLabel cost;
	private JLabel life;
	private JLabel velocity;
	private JLabel range;
	private JLabel rate;
	
	private static final long serialVersionUID = 1L;

	public CaractTour(int cost, int life, int velocity, int range, int rate){
		
		super(new GridLayout(2,3));
				
		this.cost = new JLabel();
		this.cost.setText(" cost: "+cost);
		this.add(this.cost);
		
		this.life = new JLabel();
		this.life.setText(" life: "+life);
		this.add(this.life);
		
		this.velocity = new JLabel();
		this.velocity.setText(" velocity: "+velocity);
		this.add(this.velocity);
		
		this.range = new JLabel();
		this.range.setText(" range: "+range);
		this.add(this.range);
		
		this.rate = new JLabel();
		this.rate.setText(" rate: "+rate);
		this.add(this.rate);
		
		Border border = BorderFactory.createLineBorder(Color.black, 1);
		this.setBorder(border);

		
		
	}
	
	public void updateInfoTour(int cost, int effect, int range, int rate){
		
		this.cost.setText(" cost: "+cost);
		
		this.velocity.setText(" effectVelocity: "+velocity);
		
		this.life.setText(" life: "+life);
		
		this.range.setText(" range: "+range);
		
		this.rate.setText(" rate: "+rate);
		
	  this.setVisible(true);
	}
	
	/*public void updateInfoTourID(int idTour){
		
		
		switch(idTour){
		
		case 0:
			
			this.cost.setText("cost: "+cost);
		
		this.effectVelocity.setText("effectVelocity: "+effectVelocity);
		
		this.effectLife.setText("effectLife: "+effectLife);
		
		this.range.setText("range: "+range);
		
		this.rate.setText("rate: "+rate);
		
	  this.setVisible(true);
	  break;
			

		}
		case 1:
			this.cost.setText("cost: "+cost);
		
		this.effectVelocity.setText("effectVelocity: "+effectVelocity);
		
		this.effectLife.setText("effectLife: "+effectLife);
		
		this.range.setText("range: "+range);
		
		this.rate.setText("rate: "+rate);
		
	  this.setVisible(true);
		    break;

		}
		case 2:
			
			his.cost.setText("cost: "+cost);
		
		this.effectVelocity.setText("effectVelocity: "+effectVelocity);
		
		this.effectLife.setText("effectLife: "+effectLife);
		
		this.range.setText("range: "+range);
		
		this.rate.setText("rate: "+rate);
		
	  this.setVisible(true);
			break;

		}
		case 3:
					
				his.cost.setText("cost: "+cost);
		
		this.effectVelocity.setText("effectVelocity: "+effectVelocity);
		
		this.effectLife.setText("effectLife: "+effectLife);
		
		this.range.setText("range: "+range);
		
		this.rate.setText("rate: "+rate);
		
	  this.setVisible(true);
				break;

		}
		case 4:
					
				his.cost.setText("cost: "+cost);
		
		this.effectVelocity.setText("effectVelocity: "+effectVelocity);
		
		this.effectLife.setText("effectLife: "+effectLife);
		
		this.range.setText("range: "+range);
		
		this.rate.setText("rate: "+rate);
		
	  this.setVisible(true);
				break;

		
		default :
				
				his.cost.setText("cost: "+cost);
		
		this.effectVelocity.setText("effectVelocity: "+effectVelocity);
		
		this.effectLife.setText("effectLife: "+effectLife);
		
		this.range.setText("range: "+range);
		
		this.rate.setText("rate: "+rate);
		
	  this.setVisible(true);
				break;
			}
			*/
			
}

